<?php
/**
 * Created by IntelliJ IDEA.
 * User: dhy
 * Date: 2015/9/11
 * Time: 15:54
 */

namespace App\Http\Middleware;
use Closure;

class OldMiddleware {

    public function handle($request,  $next){
        echo '--------'.$request->input('id').'=====';
        if ($request->input('id') < 200) {
            return redirect('home');
        }
        return $next($request);
    }
}